package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TbChatPage;

/**
 * chatPageMapper接口
 * 
 * @author ruoyi
 * @date 2024-09-23
 */
public interface TbChatPageMapper 
{
    /**
     * 查询chatPage
     * 
     * @param userId chatPage主键
     * @return chatPage
     */
    public TbChatPage selectTbChatPageByUserId(Long userId);

    /**
     * 查询chatPage列表
     * 
     * @param tbChatPage chatPage
     * @return chatPage集合
     */
    public List<TbChatPage> selectTbChatPageList(TbChatPage tbChatPage);

    /**
     * 新增chatPage
     * 
     * @param tbChatPage chatPage
     * @return 结果
     */
    public int insertTbChatPage(TbChatPage tbChatPage);

    /**
     * 修改chatPage
     * 
     * @param tbChatPage chatPage
     * @return 结果
     */
    public int updateTbChatPage(TbChatPage tbChatPage);

    /**
     * 删除chatPage
     * 
     * @param userId chatPage主键
     * @return 结果
     */
    public int deleteTbChatPageByUserId(Long userId);

    /**
     * 批量删除chatPage
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbChatPageByUserIds(Long[] userIds);
}
